import request from '@/utils/request'

// 查询员工工资条明细列表
export function listSlip(query) {
  return request({
    url: '/slip/slip/list',
    method: 'get',
    params: query
  })
}

// 查询员工工资条明细详细
export function getSlip(id) {
  return request({
    url: '/slip/slip/' + id,
    method: 'get'
  })
}

// 新增员工工资条明细
export function addSlip(data) {
  return request({
    url: '/slip/slip',
    method: 'post',
    data: data
  })
}

// 核算员工工资条明细
export function updateSlip(id) {
  return request({
    url: '/slip/slip/calculate/' + id,
    method: 'put'
  })
}

// 删除员工工资条明细
export function delSlip(id) {
  return request({
    url: '/slip/slip/' + id,
    method: 'delete'
  })
}
